﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using YTCMS.Services.Services;

namespace Admin.Controllers
{
    public class TestController : BaseController
    {
        public readonly ItestService _test;
        public TestController(ItestService test)
        {
            this._test = test;
        }
        //
        // GET: /Test/
        public ActionResult Index()
        {
            var model = _test.GetAsyncMany(s => true);
            return Content(model.First().Name);
        }
	}
}